import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
  path: '/system',
  name: 'system',
  component: DEFAULT_LAYOUT,
  meta: {
    title: '系统管理',
    requiresAuth: true,
    icon: 'icon-apps',
    order: 8,
  },
  children: [
    {
      path: 'admin',
      name: 'SystemAdmin',
      component: () => import('@/views/system/admin/index.vue'),
      meta: {
        title: '管理员',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'role',
      name: 'SystemRole',
      component: () => import('@/views/system/role/index.vue'),
      meta: {
        title: '角色管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'menu',
      name: 'SystemMenu',
      component: () => import('@/views/system/menu/index.vue'),
      meta: {
        title: '菜单管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'department',
      name: 'SystemDepartment',
      component: () => import('@/views/system/department/index.vue'),
      meta: {
        title: '部门管理',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'post',
      name: 'SystemPost',
      component: () => import('@/views/system/post/index.vue'),
      meta: {
        title: '岗位管理',
        requiresAuth: true,
        roles: ['*'],
      },
    }
    // {
    //   path: 'dict',
    //   name: 'SystemDict',
    //   component: () => import('@/views/system/dict/index.vue'),
    //   meta: {
    //     title: '字典管理',
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
    // {
    //   path: 'dict-data',
    //   name: 'SystemDictData',
    //   component: () => import('@/views/system/dict/data.vue'),
    //   meta: {
    //     title: '字典数据管理',
    //     hideInMenu: true,
    //     requiresAuth: true,
    //     roles: ['*'],
    //   },
    // },
  ],
};

export default DASHBOARD;
